#include "text_frame.h"

TextProp::TextProp() {}

TextProp::TextProp(const TextProp& textprop)
{
    this->m_anchor_type_ = textprop.m_anchor_type_;
    this->m_auto_fit_ = textprop.m_auto_fit_;
    this->m_column_right_to_left_ = textprop.m_column_right_to_left_;
    this->m_text_shape_type_ = textprop.m_text_shape_type_;
    this->m_text_wrap_ = textprop.m_text_wrap_;
}

string TextProp::GetAnchor() const
{
    return m_anchor_type_;
}

void TextProp::SetAnchor(string anchor)
{
    m_anchor_type_ = anchor;
}

int TextProp::GetColrtl() const
{
    return m_column_right_to_left_;
}

void TextProp::SetColrtl(int colrtl)
{
    m_column_right_to_left_ = colrtl;
}

string TextProp::GetTextWrap() const
{
    return m_text_wrap_;
}

void TextProp::SetTextWrap(string wrap)
{
    m_text_wrap_ = wrap;
}

string TextProp::GetAutoFit() const
{
    return m_auto_fit_;
}

void TextProp::SetAutoFit(string autofit)
{
    m_auto_fit_ = autofit;
}

string TextProp::GetTextType() const
{
    return m_text_shape_type_;
}

void TextProp::SetTextType(string texttype)
{
    m_text_shape_type_ = texttype;
}

TextFrame::TextFrame()
{
}

TextFrame::TextFrame(const TextFrame& textframe)
{
      this->m_text_prop_ = textframe.m_text_prop_;
      this->m_text_stream_ = textframe.m_text_stream_;
}

TextProp TextFrame::GetProp() const
{
    return m_text_prop_;
}

void TextFrame::SetProp(TextProp prop)
{
    m_text_prop_ = prop;
}

TextStream TextFrame::GetTextStream() const
{
    return m_text_stream_;
}

void TextFrame::SetTextStream(TextStream textstream)
{
    m_text_stream_ = textstream;
}
